// 全局rem函数
@use 'sass:math';

@function rem($px) {
    @return math.div($px, 16) * 1rem;
}

// 重置样式
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; // 默认字体大小，由JavaScript动态调整

    @media screen and (max-width: 768px) {
        font-size: 14px;
    }
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.5;
    // color: #515a6e;
    color: #000;
}

.flex {
    display: flex;
}

.flex-inline {
    display: inline-flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-align-center {
    align-items: center;
}

.flex-align-end {
    align-items: flex-end;
}

.flex-align-start {
    align-items: flex-start;
}

.flex-justify-around {
    justify-content: space-around;
}

.flex-justify-start {
    justify-content: flex-start;
}

.flex-justify-center {
    justify-content: center;
}

.flex-justify-evenly {
    justify-content: space-evenly;
}

.flex-justify-end {
    justify-content: flex-end;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.flex-end {
    align-self: flex-end;
}

.flex-align-baseline {
    align-items: baseline;
}

.text-center {
    text-align: center;
}

.u-flex-1 {
    flex: 1;
}

.h-full {
    height: 100%;
}

.cursor {
    cursor: pointer;
}

.vertical-line {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.6);
    vertical-align: middle;
    margin: 0 rem(2);
}